package mail;

import java.util.HashMap;

public class EmailConst {
	public final static String NAME = "&EMAIL_NAME&";
	private static HashMap<String, String> CREATORMAP = new HashMap<String, String>();
	
	static {
	  CREATORMAP.put("text/html", "mail.impl.HtmlMessageCreator");
	  CREATORMAP.put("text/rtf", "mail.impl.RtfMessageCreator");
	}
	
	public static String getCreator(String contentType) {
	  return CREATORMAP.get(contentType);
	}
}
